include(../../../mkspecs/qmake/lib.pri)
include(../../../mkspecs/qmake/version.pri)

TEMPLATE        = lib
QT             -= core gui

TARGET          = mod1-shared-ab$${DEBUG_POSTFIX}

DEFINES        += MOD1_EXPORTS

SOURCES        += \
                  src/fmod1-shared-ab.cpp \
                  src/mod1-shared-ab.cpp

HEADERS        += \
                  src/mod1-shared-ab.h

INCLUDEPATH    += \
                  api \
                  src \
                  $${CYG_NOPUB_INC_PATH}/mod1-static-a \
                  $${CYG_NOPUB_INC_PATH}/mod1-static-b

LIBS           += -L$${CYG_NOPUB_LIB_PATH}
LIBS           += -L$${CYG_NOPUB_LIB_PATH}

LIBS           += -lmod1-static-a$${DEBUG_POSTFIX}
LIBS           += -lmod1-static-b$${DEBUG_POSTFIX}

win32::RC_FILE  = src/mod1-shared-ab.rc

# Install target
INSTALLS       += target

CYG_POST_COPY  += $${CYG_NOPUB_INC_PATH}/mod1-static-a/imod1-static-a.h
CYG_POST_COPY  += $${CYG_NOPUB_INC_PATH}/mod1-static-a/fmod1-static-a.h
CYG_POST_COPY  += $${CYG_NOPUB_INC_PATH}/mod1-static-b/imod1-static-b.h
CYG_POST_COPY  += $${CYG_NOPUB_INC_PATH}/mod1-static-b/fmod1-static-b.h
include(../../../mkspecs/qmake/post_copy.pri)
